package br.unipar.avaliacao;

public class Carro {

    private double gastoComCombustivel;

    public double getGastoComCombustivel() {
        return gastoComCombustivel;
    }

    public Carro() {
        gastoComCombustivel = 0;
    }

    public void abastecer(Combustivel combustivel) {
        gastoComCombustivel = gastoComCombustivel + combustivel.calcularGastoComCombustivel();
    }

}
